package com.ymatou.iapi.address.testcase;


import org.junit.After;
import org.junit.AfterClass;
import org.junit.Before;
import org.junit.BeforeClass;
import org.junit.Test;
import org.junit.experimental.categories.Category;

import com.ymatou.iapi.address.service.VersionCall;
import com.ymt.core.tool.Logger;
import com.ymt.utils.annotation.TestCase;
import com.ymt.utils.annotation.TestSuite;
import com.ymt.utils.tag.P1;

@TestSuite
public class Ts_Version {
	private static VersionCall fmc;

	@BeforeClass
	public static void setUp() {
		Logger.createResultFile("查看version接口");
	}

	@Before
	public void caseUp() {
		fmc = new VersionCall();
	}

	@AfterClass
	public static void tearDown() {
		Logger.generateResult(fmc.getOpurl());
	}

	@After
	public void caseDown() {
		Logger.end();
	}

	@Test
	@Category(P1.class)
	@TestCase
	public void Tc_Address_001() {
		Logger.start(true,"查询消息成功");
		try {
			Logger.comment("sendMsg");
			fmc.callService();
			Logger.verifyEquals("true",fmc.getString("Success"),"验证success");
		} catch (Exception e) {
			Logger.fail(e);
		}
	}

}